<!DOCTYPE html>
<html>
    <head lang="en">
        <meta charset="UTF-8">
        <title>KLIPSE: a simple and elegant online cljs compiler and evaluator</title>
        <link rel='shortcut icon' type='image/x-icon' href='img/klipse.png' />
        <link rel="stylesheet" type="text/css" href="css/codemirror.css">
    </head>
    <body>
    <div class="clojure">
        (require '[clojure.spec.alpha :as s])
    </div>

    <div class="clojure">
  (require '[clojure.spec.alpha :as s]
  '[clojure.spec.test.alpha :as stest]
  '[clojure.spec.gen.alpha :as gen])
</div>
<br/>
<div class="clojure">
  (s/def ::x integer?)
  </div>
<br/>
    <div class="clojure">
        (stest/instrument `map)
    </div>
<div class="clojure">
  (defn foo [x] x)
    (s/fdef foo :args (s/cat :x ::x)
  :ret string?)
    (s/describe (s/get-spec `foo))
</div>
<br/>
<div class="clojure">
  (gen/sample (s/gen ::x))
</div>
<br/>
<div class="clojure">
  (stest/instrument `foo)
  (foo 1)
</div>
<br/>
<div class="clojure">
(foo "1")
</div>
<br/>
<div class="clojure">
    (stest/abbrev-result (first (stest/check `foo)))
</div>
<br/>
<br/>
       <script>
        window.klipse_settings = {
      selector: '.clojure',
      //clojure_cached_macro_ns_regexp: /.*/,
      //clojure_cached_ns_regexp: /.*/,
      //	codemirror_root: "http:/dsadsa/",
//      cached_ns_root: "http://localhost:9990/docs/cache-cljs",
      };
        </script>
    <script src="/cljs-out/dev-main.js"></script>

    </body>
</html>
